const CryptoJS = require('crypto-js');


function decryptAES_CBC(encryptedData) {
    let decrypted = CryptoJS.AES.decrypt(encryptedData, CryptoJS.enc.Utf8.parse("glt6h61ta7kisow7"), {
        iv: CryptoJS.enc.Utf8.parse("4hrivgw5s342f9b2"),
        mode: CryptoJS.mode.CBC,
        padding: CryptoJS.pad.Pkcs7
    });
    return decrypted.toString(CryptoJS.enc.Utf8); // 转为 UTF-8 格式的字符串
}

let encryptedData = "d833c10d0f5553fea351a3f133cc5015179860625b125490d95e512d640373ab382a5d66f231ae041d479f81bf125578d214b8eff166d85704c1e26733e35406b0e55d10be0b48d2a3539cc8f48885129ddc988fbc2681fdac5d4fa97f564c426816acec35290ee651687b0b9ad3b3e9561f914656cfc6308790604759df6c9c89fa4fe6902888e9e69ce28d2a08ee09ea766225574f048d2023773bc5b7fc20205d721cd748ead16f819114a9d5270c49035b534b300dd61a2d109e3897214aa7a3249eca990d1b4427ab62af8e8721";

let decryptedData = decryptAES_CBC(encryptedData);
console.log("解密结果:", decryptedData);

// "/api/sns/web/v1/user/hover_card?target_user_id=63ff91a3000000001001e640&image_formats=jpg,webp,avif&xsec_source=pc_comment&xsec_token="